package com.mdd.admin.service;

import com.mdd.admin.validate.LegalLawyerCreateValidate;
import com.mdd.admin.validate.LegalLawyerSearchValidate;
import com.mdd.admin.validate.LegalLawyerStateUpdateValidate;
import com.mdd.admin.validate.LegalLawyerUpdateValidate;
import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.vo.LegalLawyerDetailVo;
import com.mdd.admin.vo.LegalLawyerListedVo;
import com.mdd.common.core.PageResult;

import java.text.ParseException;

/**
 * 律师列表服务接口类
 * @author LikeAdmin
 */
public interface ILegalLawyerService {

    /**
     * 律师列表列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<LegalLawyerListedVo>
     */
    PageResult<LegalLawyerListedVo> list(PageValidate pageValidate, LegalLawyerSearchValidate searchValidate);

    /**
     * 律师列表详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return LegalLawyerDetailVo
     */
    LegalLawyerDetailVo detail(Integer id);

    /**
     * 律师列表新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(LegalLawyerCreateValidate createValidate);

    /**
     * 律师列表编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(LegalLawyerUpdateValidate updateValidate) throws ParseException;

    void editStatus(LegalLawyerStateUpdateValidate updateValidate);

    /**
     * 律师列表删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
